/* 
 * File:   Track.h
 * Author: dave
 *
 * Created on 2010年11月2日, 下午5:03
 */

#ifndef TRACK_H
#define	TRACK_H

#include "Data.h"
#include "cv.h"
#include <vector>
using namespace std;

class Track {
public:
    Track(Camera *camera);
    Track(const Track& orig);

    vector<CvRect> V;

    //清除缓存
    void Clear();
    //CamShift跟踪目标
    void CamShift(trackObject obj);
    //绘制边框
    void Draw(IplImage * image);

    virtual ~Track();
private:
    Camera *cam;
    CvRect selection;
    CvRect window;
    CvConnectedComp comp;
    CvBox2D box;

};

#endif	/* TRACK_H */

